<template>
	<view class="dk-container">
		<view class="dk-item" @click="toStorePage()"><image src="../../static/toStore/tostore-icon.png"></image>助店</view>
		<view class="dk-item" @click="toUploadPage()"><image src="../../static/toStore/collection-icon.png"></image>图像采集</view>
		<view class="dk-item" @click="toSivi()"><image src="../../static/toStore/sivi-icon.png"></image>SIVI核查</view>
		<view class="dk-item" @click="toSystemManagementListPage()"><image src="../../static/toStore/system-icon.png"></image>系统管理</view>
		<u-toast ref="uToast" z-index="9999" />
	</view>
</template>

<script>
	import {
		getMapJmSalesDkInfo,
		getMapJmSalesDeviceInfo,
		dkByMapJmSalesDevice
	} from '../../common/service.js'
	import utils from '../../common/utils.js'
	export default {
		data() {
			return {
				timer: null
			};
		},
		onLoad: function() {
			//this.stop()
		},
		onShow: function() {
			const that = this;
		},
		methods: {
			// 阻止页面滚动
			stop(){
				var box=function(e){passive: false ;};
				document.body.style.overflow='hidden';
				document.addEventListener("touchmove",box,false);
			},
			// 允许页面滚动
			move(){
				var box=function(e){passive: false };
				document.body.style.overflow=''; // 出现滚动条
				document.removeEventListener("touchmove",box,false);
			},
			toUploadPage(){
				uni.navigateTo({
					url: '../xdIndex/index'
				});
			},
			toStorePage() {
				uni.navigateTo({
					url: '../toStore/index'
				});
			},
			toSystemManagementListPage(){
				uni.navigateTo({
					url: '../systemManagementList/index'
				});
			},
			toSivi(){
				window.open('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxbc20e61ad378ec64&redirect_uri=https%3A%2F%2Fbiapex.huanai.com%2Fords%2Ff%3Fp%3D145%3A9000%3A%3A%3ANO%3A%3AP9000_NEW%3A9&response_type=code&scope=snsapi_base#wechat_redirect')
			}
		}
	};
</script>

<style>
	page{
		width: 100%;
		height: 100%;
		padding: 0;
		margin: 0;
	}
	.dk-container {
		width: 100%;
		height: 100%;
		padding: 0;
		margin: 0;
		position: relative;
		padding-top: 356rpx;
		background: url('../../static/toStore/dk-banner.png') no-repeat left top #F3F5F7;
		background-size: 750rpx 453rpx;
		box-sizing: border-box;
	}
	.dk-item{
		width: 690rpx;
		height: 162rpx;
		display: flex;
		align-items: center;
		line-height: 162rpx;
		background: #FFFFFF;
		box-shadow: 0px 6rpx 12rpx 0px rgba(221,221,221,0.5);
		border-radius: 16rpx;
		margin: 0 auto 20rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 30rpx;
		color: #333333;
	}
	.dk-item image{
		width: 104rpx;
		height: 104rpx;
		margin-left: 23rpx;
		margin-right: 13rpx;
	}
	
</style>
